package com.miao.websecurity.entity.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.miao.websecurity.entity.SysRole;

import java.util.Date;
import java.util.List;

/**
 * @author MiaoWenqing
 * @description: admin
 * @date 2021/2/8 22:59
 */
public class AdminVO {

    /**
     * 管理员id
     */
    private Integer adminId;
    /**
     * 管理员姓名
     */
    private String adminName;
    /**
     * 管理员电话
     */
    private String adminTel;
    /**
     * 上次登录时间
     */
    private Date lastLoginTime;
    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * admin 的角色
     */
    private List<SysRole> sysRoles;


    public AdminVO() {
    }

    @Override
    public String toString() {
        return "AdminVO{" +
                "adminId=" + adminId +
                ", adminName='" + adminName + '\'' +
                ", adminTel='" + adminTel + '\'' +
                ", lastLoginTime=" + lastLoginTime +
                ", createTime=" + createTime +
                ", sysRoles=" + sysRoles +
                '}';
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }

    public String getAdminTel() {
        return adminTel;
    }

    public void setAdminTel(String adminTel) {
        this.adminTel = adminTel;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public List<SysRole> getSysRoles() {
        return sysRoles;
    }

    public void setSysRoles(List<SysRole> sysRoles) {
        this.sysRoles = sysRoles;
    }
}
